<?php
namespace app\api\controller;

use app\BaseController;
use app\model\Demo as SelfModel;
use app\model\DemoRadio;
use app\model\DemoSelect;
use app\model\DemoSelectmany;
use app\model\Checkbox;

use think\facade\Cookie;
use think\Response;
use think\Request;
class Demo extends Base
{


    public function initialize()
    {
        parent::initialize();
        $this->model = "\app\model\Demo";
        $this->list_rows = 10;
        $this->index = ['id','text','textarea','status','radio_id','radio_title','radiotext_id','radiotext_title','select_id','select_title','selecttext_id','selecttext_title','select_many_id','select_many_title','upload_one','checkbox_id','checkbox_title','upload_many','file','oss_file','editor','sort','create_time'];
        $this->all = ['id','text','textarea','status','radio_id','radio_title','radiotext_id','radiotext_title','select_id','select_title','selecttext_id','selecttext_title','select_many_id','select_many_title','upload_one','checkbox_id','checkbox_title','upload_many','file','oss_file','editor','sort','create_time'];
        $this->my = ['id','text','textarea','status','radio_id','radio_title','radiotext_id','radiotext_title','select_id','select_title','selecttext_id','selecttext_title','select_many_id','select_many_title','upload_one','checkbox_id','checkbox_title','upload_many','file','oss_file','editor','sort','create_time'];
        $this->view = ['id','text','textarea','status','radio_id','radio_title','radiotext_id','radiotext_title','select_id','select_title','selecttext_id','selecttext_title','select_many_id','select_many_title','upload_one','checkbox_id','checkbox_title','upload_many','file','oss_file','editor','sort','create_time'];
        $this->msg = 'ABCDF';
        $this->order = ['sort'=>'asc','id'=>'desc'];
        $this->status = [['status','=','1']];
    }




}
